Previous Book Contents Book Index Next

Inside Macintosh: Programming With MRJToolkit /
Chapter 2 - MRJToolkit Reference / The MRJOSType Class
Methods /


equals

Compares a value to one of type MRJOSType or an integer.

public final boolean equals (MRJOSType type);
public final boolean equals (int type);
type
The value to compare against.
method result
True if the value matches what you compared it against, false otherwise.
DISCUSSION
For example, if you received an MRJ OS type in the variable myType, then

myType.equals(new MRJOSType ("TEXT")) ;
is true if the MRJ OS type is of type 'TEXT'.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
12 NOV 1997